<template>
  <div class="swiper-container">
    <el-carousel height="250px" direction="vertical" :autoplay="false">
      <el-carousel-item v-for="item,index in imgUrl" :key="index">
        <!-- <h3 class="medium">{{ item }}</h3> -->
        <img :src="item" alt="" class="bg">
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {
  name: 'Swiper',
  data () {
    return {
      imgUrl: [
        'https://www.ipicbed.com/images/2022/01/27/git.png',
        'https://www.ipicbed.com/images/2022/02/01/ajax01.png',
        'https://www.ipicbed.com/images/2022/01/27/mysql.jpg'
      ]
    }
  }
}
</script>

<style lang="less" scoped>
.swiper-container {
  // display: flex;
  margin-bottom: 15px;

}
.el-carousel{
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
.bg{
  width: 100%;
  height: 100%;
  background:  no-repeat center;
  background-size: cover;
}
</style>
